package com.ruoyi.commerce.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 commerce_orders
 *
 * @author ruoyi
 * @date 2024-01-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("commerce_orders")
public class CommerceOrders extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 订单号
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 采购单号
     */
    private Long purchaseId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 订单日期
     */
    private Date orderDate;
    /**
     * 商品id
     */
    private Long productId;
    /**
     * 商品数量
     */
    private Integer productQuantity;
    /**
     * 总积分
     */
    private BigDecimal totalPrice;
    /**
     * 状态
     */
    private String status;

}
